home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / xslt.lang < prev    next >
Encoding:
Extensible Markup Language  |  2009-04-13  |  3.4 KB  |  108 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Paolo Borelli <pborelli@katamail.com>
  5.  Copyright (C) 2008 Paolo Borelli <pborelli@katamail.com>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="xslt" _name="XSLT" version="2.0" _section="Markup">
  24.   <metadata>
  25.     <property name="mimetypes">application/xslt+xml</property>
  26.     <property name="globs">*.xsl</property>
  27.     <property name="block-comment-start"><!--</property>
  28.     <property name="block-comment-end">--></property>
  29.   </metadata>
  30.  
  31.   <styles>
  32.     <style id="element" _name="Element" map-to="def:keyword"/>
  33.     <style id="namespace" _name="Namespace" map-to="xslt:element"/>
  34.   </styles>
  35.  
  36.   <definitions>
  37.  
  38.     <context id="namespace" style-ref="namespace">
  39.       <match>(?<!:)xsl:</match>
  40.     </context>
  41.  
  42.     <context id="xslt-namespace">
  43.       <include>
  44.         <context ref="namespace"/>
  45.         <context ref="xml:namespace" original="true"/>
  46.       </include>
  47.     </context>
  48.  
  49.     <context id="elements" once-only="true" style-ref="element">
  50.       <suffix>\b(?!\s*=)</suffix>
  51.       <keyword>apply-imports</keyword>
  52.       <keyword>apply-templates</keyword>
  53.       <keyword>attribute-set</keyword>
  54.       <keyword>attribute</keyword>
  55.       <keyword>call-template</keyword>
  56.       <keyword>choose</keyword>
  57.       <keyword>comment</keyword>
  58.       <keyword>copy-of</keyword>
  59.       <keyword>copy</keyword>
  60.       <keyword>decimal-format</keyword>
  61.       <keyword>document</keyword>
  62.       <keyword>element</keyword>
  63.       <keyword>fallback</keyword>
  64.       <keyword>for-each</keyword>
  65.       <keyword>if</keyword>
  66.       <keyword>import</keyword>
  67.       <keyword>include</keyword>
  68.       <keyword>key</keyword>
  69.       <keyword>message</keyword>
  70.       <keyword>namespace-alias</keyword>
  71.       <keyword>number</keyword>
  72.       <keyword>otherwise</keyword>
  73.       <keyword>output</keyword>
  74.       <keyword>param</keyword>
  75.       <keyword>preserve-space</keyword>
  76.       <keyword>processing-instruction</keyword>
  77.       <keyword>script</keyword>
  78.       <keyword>sort</keyword>
  79.       <keyword>strip-space</keyword>
  80.       <keyword>stylesheet</keyword>
  81.       <keyword>template</keyword>
  82.       <keyword>text</keyword>
  83.       <keyword>transform</keyword>
  84.       <keyword>value-of</keyword>
  85.       <keyword>variable</keyword>
  86.       <keyword>when</keyword>
  87.       <keyword>with-param</keyword>
  88.     </context>
  89.  
  90.     <context id="xslt-tags">
  91.       <include>
  92.         <context ref="elements"/>
  93.         <context ref="xml:element-name" original="true"/>
  94.       </include>
  95.     </context>
  96.  
  97.     <replace id="xml:namespace" ref="xslt-namespace"/>
  98.     <replace id="xml:element-name" ref="xslt-tags"/>
  99.  
  100.     <context id="xslt">
  101.       <include>
  102.         <context ref="xml:xml"/>
  103.       </include>
  104.     </context>
  105.   </definitions>
  106.  
  107. </language>
  108.